<template>
  <div class="icons">
    <!-- <swiper>
      <swiper-slide> -->
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/01d2f57f920666364197a850dab859a8.png'>
            </div>
            <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/83af731055e121a3251690b225327b56.png'>
            </div>
            <p class="icon-desc">专车自驾</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/1e107321f5396ea4994cd832232ecf8a.png'>
            </div>
            <p class="icon-desc">旅游团购</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/c65b3bb7571a6bd62df669213e44b84d.png'>
            </div>
            <p class="icon-desc">一日游</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/01d2f57f920666364197a850dab859a8.png'>
            </div>
            <p class="icon-desc">热门景点</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/83af731055e121a3251690b225327b56.png'>
            </div>
            <p class="icon-desc">专车自驾</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/1e107321f5396ea4994cd832232ecf8a.png'>
            </div>
            <p class="icon-desc">旅游团购</p>
        </div>
        <div class="icon">
            <div class="icon-img">
              <img class="icon-img-content" src='https://picbed.qunarzz.com/c65b3bb7571a6bd62df669213e44b84d.png'>
            </div>
            <p class="icon-desc">一日游</p>
        </div>
    <!-- </swiper> -->
  </div>
</template>

<script>
import Swiper from './Swiper.vue'
export default {
  components: { Swiper },
  name: 'HomeIcons'
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  @import '~styles/mixins.styl'
  .icons
    width: 100%
    overflow: hidden
    height: 0
    padding-bottom: 50%
    .icon
      position relative
      overflow: hidden
      float: left
      width: 25%
      height: 0
      padding-bottom: 25%
      .icon-img
        position: absolute
        top: 0
        left: 0
        right: 0
        bottom: .44rem
        box-sizeing: border-box
        padding: .1rem
        .icon-img-content
          display: block
          margin: 0 auto
          height: 100%
      .icon-desc
        position: absolute
        left: 0
        right: 0
        bottom: 0
        height: .44rem
        line-height: .44rem
        text-align: center
        color: $darkTextColor
        ellipsis()
</style>
